# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=dar
pkgver=2.7.13
pkgrel=0
pkgdesc="Disk ARchive"
url="http://dar.linux.free.fr/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # the provided "make check" requires root permissions
makedepends="argon2-dev bzip2-dev curl-dev e2fsprogs-dev gettext-dev gpgme-dev
	libgcrypt-dev librsync-dev libthreadar-dev lz4-dev lzo-dev xz-dev zlib-dev
	zstd-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-dar-static \
		--disable-static \
		--disable-upx \
		--disable-dependency-tracking
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e7a4bd89ccefaca1d9251d05c39e80f9861b8154f414cd578ba98c3cf3a9f945738c6225fd007b5e73c2d7c2e4abe547e9a2e2deec2cb7e0ec5860603add64fb  dar-2.7.13.tar.gz
"
